package com.zhledu.mongo.dao;

import com.zhledu.mongo.beans.Student;
import org.springframework.data.mongodb.repository.MongoRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface StudentRepository extends MongoRepository<Student,String> {

     List<Student> findByNameAndAge(String name ,int age);
}
